﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Entities;

namespace CuaHangBangDia.QLBD
{
    public partial class QLTheLoai : Form
    {

        public QLTheLoai()
        {
            InitializeComponent();
            dgvTheLoai.AutoGenerateColumns = false;
        }

        private void btnHienThi_Click(object sender, EventArgs e)
        {
           LoadDGV(TheLoai.Objects.GetAll().ToList());
        }
        public void LoadDGV(List<TheLoai> list)
        {
            dgvTheLoai.DataSource = list;
        }

        private void QLTheLoai_Load(object sender, EventArgs e)
        {

        }
    }
}
